package com.shangyueshang.model;

import com.shangyueshang.enums.GoodsType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author: JokeyZheng
 * @email: zhengjingfeng@ruqimobility.com
 * @created: 2022/1/14 15:08
 * @version: v1.0.0
 *
 * <p>SKU信息表</p>
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class Goods extends BaseModel implements BaseShopSkuKey, Serializable {
	
	/**
	 * 中文名称
	 */
	private String name;
	
	/**
	 * 自定义SKU
	 */
	private String sku;
	
	/**
	 * 平台SKU
	 */
	private String fnSku;
	
	/**
	 * 平台ASIN
	 */
	private String asin;

	/**
	 * 品类
	 *
	 * @see GoodsType
	 */
	private String goodsType;
	
	/**
	 * 店铺
	 */
	private String shop;
	
	/**
	 * 产品内部编码
	 */
	private String productCode;
	
	/**
	 * SKU链接url
	 */
	private String showUrl;
	
	/**
	 * 头程费用，单位：元
	 */
	private BigDecimal headwayFee;
	
	/**
	 * 备注说明
	 */
	private String remark;
	
	@Override
	public String shopSkuKey() {
		return this.shop + "-" + this.sku;
	}
}
